<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
	<link rel="stylesheet" type="text/css" href="../../css/api.css" />
	<link rel="stylesheet" type="text/css" href="../../css/common.css" />
	<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
  <title>活动详情</title>
  <style>
		html, body {width: 100%;min-height: 100%;background: #fff;}
		.h20 {height: 0.5rem;background: #f0f0f0;margin: 0 -1rem;;}

    .detail_con {
      padding: 1rem;
    }
    .detail_title h3 {
      font-size: 0.9rem;
      color: #333;
    }
    .detail_price h5 {
      font-size: 0.75rem;
      color: #333;
      margin: 1rem 0;
    }
    .detail_addtime h5 {
      font-size: 0.6rem;
      color: #999;
      margin: 1rem 0;
    }
    .detail_time h5 {
      font-size: 0.75rem;
      color: #333;
      margin: 1rem 0;
    }
    .detail_address h5 {
      font-size: 0.75rem;
      color: #333;
      margin: 1rem 0;
    }
    .detail_tit_sm h4 {
      font-size: 0.75rem;
      color: #333;
      font-weight: bold;
      line-height: 1.2rem;
    }
    .detail_text p {
      font-size: 0.75rem;
      line-height: 1.2rem;
      color: #333;
      margin: 1rem 0;
    }
    .detail_tit_sm h4 {
      margin: 1rem 0;
    }
	</style>
</head>
<body>

<div id="app" v-cloak class="detail_con">
  <div class="detail_title">
    <h3>{{data.title}}</h3>
  </div>
  <div class="detail_addtime">
    <h5>{{data.create_date}}</h5>
  </div>
  <div class="detail_time">
    <h5>时间: {{data.apply_date}} ~ {{data.end_date}}</h5>
  </div>
  <div class="detail_address">
    <h5>地点: {{data.address}}</h5>
  </div>
  <div class="detail_price">
    <h5>价格: ￥{{data.apply_cost}} </h5>
  </div>
  <div class="h20"></div>
  <div class="detail_tit_sm">
    <h4>活动简介</h4>
  </div>
  <div class="detail_text" v-html="data.activity_details">

  </div>
</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/utils.min.js"></script>
<script type="text/javascript">

apiready = function() {

  var app = new Vue({
    el: '#app',
    data: {
      data: [],
    },
    created: function() {
      var $_this = this;

      api.ajax({
       url: window.Url.getPublishDetail + "3/" + api.pageParam.id,
       method: 'GET',
       timeout: 300,
     }, function(ret, err) {
      //  api.alert({ msg: JSON.stringify(ret) });
         if (ret) {
           if (ret.data == null) return
           $_this.data = ret.data;

         } else {
            //  api.alert({ msg: JSON.stringify(err) });
         }
     })
    },
    filters: {
      time: function (value) {
        value = new Date(value)
        return value.getFullYear() + '-' + value.getMonth() + '-' + value.getDate() + ' ' + value.getHours() + ':' + value.getMinutes()
      }
    },
    methods: {

    }
  })
}

</script>
</html>
